notNull

open fun notNull(value: Any)

test if an instance is not null

Parameters

value

value to test

Throws

when the instance is null


open fun notNull(value: Any, name: String)

test if an instance is not null

Parameters

value

value to test

name

value name for better error message

Throws

when the instance is null